projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e8260d
)
wayland: Plug listmodel memory leaks
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 10 Nov 2020 14:05:55 +0000
(09:05 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 10 Nov 2020 14:05:55 +0000
(09:05 -0500)
We were leaking references returned from g_list_model_get_item
in some places.
gdk/wayland/gdksurface-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdksurface-wayland.c
b/gdk/wayland/gdksurface-wayland.c
index df106ee6e3b6b79ae30de3b298e3351664e2c148..73c59779ffada5245928a63f707ce92df98c20f3 100644
(file)
--- a/
gdk/wayland/gdksurface-wayland.c
+++ b/
gdk/wayland/gdksurface-wayland.c
@@
-1270,6
+1270,7
@@
configure_surface_geometry (GdkSurface *surface)
monitor = g_list_model_get_item (gdk_display_get_monitors (display), 0);
gdk_monitor_get_geometry (monitor, &monitor_geometry);
+ g_object_unref (monitor);
bounds_width = monitor_geometry.width;
bounds_height = monitor_geometry.height;